<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Belong社区</title>
    <link rel="shortcut icon" href="./imgs/ico.png" type="image/x-icon">
    <link rel="stylesheet" href="./css/font/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/index.css">
</head>

<body>
    <div class="box">
        <div class="header">
            <div class="logo">
                <a href="#">
                    <img src="./imgs/logo.png" alt="">
                </a>
                <span id="allcom">所有社区&nbsp;
                    <i class="fa fa-angle-down"></i>
                </span>
            </div>
            <div class="login">
                <ul>
                    <li>
                        <a href="#">首页</a>
                    </li>
                    <li>
                        <a href="#">关于YOU+</a>
                    </li>
                    <li>
                        <a href="#">文化</a>
                    </li>
                    <li>
                        <a href="#">商业合作</a>
                    </li>
                </ul>
                <a class="loginbtn" href="#">注册登录</a>
            </div>
        </div>
        <div class="content">
            <div class="ul">
                <h1>
                    <a href="#">广州</a>
                </h1>
                <ul>
                    <li>
                        <a href="#">凤凰社区</a>
                    </li>
                    <li>
                        <a href="#">宝钢社区</a>
                    </li>
                    <li>
                        <a href="#">职场社区</a>
                    </li>
                    <li>
                        <a href="#">时代TIT社区</a>
                    </li>
                    <li>
                        <a href="#">人民南社区</a>
                    </li>
                    <li>
                        <a href="#">百信社区</a>
                    </li>
                    <li>
                        <a href="#">光海社区</a>
                    </li>
                    <li>
                        <a href="#">无氧社区</a>
                    </li>
                </ul>
            </div>
            <div class="ul">
                <h1>
                    <a href="#">广州</a>
                </h1>
                <ul>
                    <li>
                        <a href="#">凤凰社区</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                </ul>
            </div>
            <div class="ul">
                <h1>
                    <a href="#">广州</a>
                </h1>
                <ul>
                    <li>
                        <a href="#">凤凰社区</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                </ul>
            </div>
            <div class="ul">
                <h1>
                    <a href="#">广州</a>
                </h1>
                <ul>
                    <li>
                        <a href="#">凤凰社区</a>
                    </li>
                    <li>
                        <a href="#">宝钢社区</a>
                    </li>
                    <li>
                        <a href="#">职场社区</a>
                    </li>
                    <li>
                        <a href="#">时代TIT社区</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                    <li>
                        <a href="#">&nbsp;</a>
                    </li>
                </ul>
            </div>
            <div class="ul">
                <h1>
                    <a href="#">广州</a>
                </h1>
                <ul>
                    <li>
                        <a href="#">凤凰社区</a>
                    </li>
                    <li>
                        <a href="#">宝钢社区</a>
                    </li>
                    <li>
                        <a href="#">职场社区</a>
                    </li>
                    <li>
                        <a href="#">时代TIT社区</a>
                    </li>
                    <li>
                        <a href="#">人民南社区</a>
                    </li>
                    <li>
                        <a href="#">百信社区</a>
                    </li>
                    <li>
                        <a href="#">光海社区</a>
                    </li>
                    <li>
                        <a href="#">无氧社区</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="box2">
        <div class="lb">
            <div class="picture">
                <img class="img" src="./imgs/bg1.jpg" alt="">
                <img class="img" src="./imgs/bg2.jpg" alt="">
                <img class="img" src="./imgs/bg3.jpg" alt="">
            </div>
            <div class="contents">
                <p class="box2_title">太原,我们来了</p>
                <p class="box2_title">我们做好了一个家，只给年轻的你</p>
            </div>
            <div class="btn">
                <a id="ljck" href="https://yun.kujiale.com/design/3FO49WYFFJ8S/show"
                    target="_blank">立&nbsp;即&nbsp;查&nbsp;看</a>
            </div>
            <div class="jt">
                <i id="left" class="fa fa-angle-left"></i>
                <i id="right" class="fa fa-angle-right"></i>
            </div>
        </div>
    </div>
    <div class="box3">
        <div class="main">
            <div class="line">
                <span></span>
            </div>
            <div class="contents">
                <span>感 受 最 年 轻 的 生 活 方 式</span>
                <span>和年轻人一起工作、生活、成长</span>
                <span>找到你的朋友们和另一半</span>
            </div>
            <div class="icon">
                <ul>
                    <li>
                        <img src="./imgs/icon1.svg" alt="">
                        <h2>活动</h2>
                        <span>我们大家一起玩</span>
                    </li>
                    <li>
                        <img src="./imgs/icon2.svg" alt="">
                        <h2>家友</h2>
                        <span>相识相知，相伴相助</span>
                    </li>
                    <li>
                        <img src="./imgs/icon3.svg" alt="">
                        <h2>居住</h2>
                        <span>小户型 大空间</span>
                    </li>
                    <li>
                        <img src="./imgs/icon4.svg" alt="">
                        <h2>物业</h2>
                        <span>拿钱花在看不见的地方</span>
                    </li>
                </ul>
            </div>
            <div class="btn">
                <a href="#">了解Belong+</a>
            </div>
        </div>
    </div>
    <div class="box4">
        <div class="box4_title">
            <img src="./imgs/floor1.png" alt="">
            <span>给&nbsp;你&nbsp;一&nbsp;个&nbsp;最&nbsp;有&nbsp;创&nbsp;意&nbsp;的&nbsp;生&nbsp;活&nbsp;空&nbsp;间</span>
            <ul>
                <li>居住空间</li>
                <li>公共空间</li>
            </ul>
        </div>
        <div class="pic">
            <div class="imgs">
                <img src="./imgs/floor4_01.png" alt="">
                <img src="./imgs/floor4_02.png" alt="">
                <img src="./imgs/floor4_03.png" alt="">
            </div>
            <div class="imgs">
                <img src="./imgs/floor4_04.png" alt="">
                <img src="./imgs/floor4_05.png" alt="">
                <img src="./imgs/floor4_06.png" alt="">
            </div>
        </div>
        <div class="jt">
            <i id="left" class="fa fa-angle-left"></i>
            <i id="right" class="fa fa-angle-right"></i>
        </div>
    </div>
    <div class="box5">
        <div class="box5_wrap">
            <div class="bgcolor"></div>
        </div>
        <div class="box5_content">
            <span>至今已服务入住会员</span>
            <span>
            </span>
            <span>50，000+</span>
            <span>YOU+从成立之日起到现在，服务过众多年轻群体，促进了年轻人的社交生活。</span>
        </div>

    </div>
    <div class="box6">
        <div class="box6_left">
            <div class="line">
            </div>
            <div class="box6_title">
                <p>一起分享</p>
                <p>属于年轻人的</p>
                <p>时光...</p>
            </div>
            <div class="box6_content">
                <span>电影周、音乐趴、万圣节、分享会、篮球赛、圣诞节、涮火锅等各种精彩活动嗨起来。</span>
            </div>
            <div class="box6_btn">
                <a href="#">了解BeLong文化</a>
            </div>
        </div>
        <div class="box6_right">
            <img src="./imgs/floor6_img1.png" alt="">
            <img src="./imgs/floor6_img2.png" alt="">
        </div>
    </div>
    <div class="box7">
        <div class="box7_main">
            <div class="box7_title">
                <div class="line"></div>
                <span>全国布局</span>
            </div>
            <div class="box7_content">
                <ul>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span>成都</span>
                            <span>CHENGDU</span>
                            <span>2个社区</span>
                        </a>
                    </li>
                </ul>
            </div>
            <div class="signin">
                <a href="#">没有你所在的城市？去申请</a>
            </div>
        </div>

    </div>
</body>
<script src="./js/jquery.min.js"></script>
<script>
    $(function () {
        // 轮播图变量
        let n = 0;
        let time = 5000;//轮播换图时间
        let time1 = 1000;// 所有社区下拉时间
        let x = document.querySelectorAll('.box2 > .lb .picture img').length;
        let box4 = document.querySelectorAll(".box4 > .pic > .imgs:first-child > img").length;

        // 下拉框
        $('#allcom').click(function () {
            $('.content').slideToggle(time1);
        });
        // 轮播图      
        function box1show(n) {
            $('.img').css('display', 'none');
            $('.img:eq(' + n + ')').css('display', 'inline-block');
            $('.box2_title').css('display', 'none');
            $('.box2_title:eq(' + n + ')').css('display', 'inline-block');
            if (n == 2) {
                $('#ljck').css('display', 'none');
            } else {
                $('#ljck').css('display', 'block');
            }
        }
        function left(a) {
            if (n == 0) {
                n = a - 1;
            } else {
                n--;
            }
            return n;
        }
        function right(a) {
            if (n == (a - 1)) {
                n = 0;
            } else {
                n++;
            }
            return n;
        }
        function box2right() {
            if (n == (x - 1)) {
                n = 0;
            } else {
                n++;
            }
            box1show(n);
        }
        box2lbt();
        setInterval(box2right, time);
        function box2lbt() {
            box1show(n);
            $('#left').click(() => {
                box1show(left(x));
            });
            $('#right').click(() => {
                box1show(right(x));
            });
        }
        // 居住空间
        $(".box4 > .box4_title > ul > li").click(function () {
            $(this).css("border-bottom", "3px solid #555").siblings().css("border", "none");
            $(".box4 > .pic > .imgs:eq(" + $(this).index() + ")").show().siblings().hide();
        });
        // 居住空间轮播图
        function box4show1() {
            $('.box4 > .pic > .imgs:first-child > img').css('display', 'none');
            $('.box4 > .pic > .imgs:first-child > img:eq(' + n + ')').css('display', 'block');
        }
        box4lbt1();
        function box4lbt1() {
            box4show1();
            $(".box4 > .jt i:first-child").click(() => {
                box4show1(left(box4));
            });
            $(".box4 > .jt i:last-child").click(() => {
                box4show1(right(box4));
            });
        }
        // 公共空间轮播图
        function box4show2() {
            $('.box4 > .pic > .imgs:last-child > img').css('display', 'none');
            $('.box4 > .pic > .imgs:last-child > img:eq(' + n + ')').css('display', 'block');
        }
        box4lbt2();
        function box4lbt2() {
            box4show2();
            $(".box4 > .jt i:first-child").click(() => {
                box4show2(left(box4));
            });
            $(".box4 > .jt i:last-child").click(() => {
                box4show2(right(box4));
            });
        }


        // box6右  轮播图
        function box6show() {
            $(".box6 > .box6_right > img").css("display", "none");
            $(".box6 > .box6_right > img:eq(" + n + ")").css("display", "block");
        }
        box6show();
        $(".box6 > .box6_right > img").click(() => {
            box6show(right($(".box6 > .box6_right > img").length));
        });




    });

</script>

</html>